-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(api): customizable at_edge
behavior
#80
Conversation
@IndianBoy42 give this a test please |
at_edge="split" certainly works how I expected, thanks! I dont use any mux so I can't check that, |
Cool, I'm going to use this branch for a while to make sure I'm not introducing any regressions before merging. |
@mehalter I'd like to get your thoughts on whether you think these types of changes should be considered breaking changes, and therefore require a Major release. Technically nothing is "broken," as the changes in this PR will migrate configuration settings to their new equivalents, however, you'll see a deprecation notice if you've explicitly set any of the affected settings in config. For example, if you have either of these explicitly in config: require('smart-splits').setup({ wrap_at_edge = true })
-- or
require('smart-splits').setup({ wrap_at_edge = false }) Then the plugin will migrate this to the new So I guess the tl;dr is: Should it be considered a "breaking change" if nothing is technically "broken," but explicitly setting the deprecated configs will print a deprecation notice using I'm bringing this up given the context that I recently learned this plugin is used in AstroNvim, and I want to know how you'd like to see the versioning scheme fit here. |
Going to merge, but would still like some feedback about next release tag from @mehalter. |
@mrjones2014 I think tagging those options as |
also sorry about the late reply, was out of town for the past few days and totally forgot to go back and answer this! Thanks so much for the heads up :) Love the community and joint collaboration ❤️ |
Also just realized that AstroNvim doesn't actually override this setting, so the base astronvim doesn't require a code update, and it will just affect users who override this explicitly which there is a certain level of responsibility taken when customizing AstroNvim 😄 |
No worries! Thanks for that feedback, I will tag a minor release shortly then! 💪 |
@mrjones2014 just while we are chatting here and to avoid making an issue. Do you think it would make sense to have |
Hmm, generally yeah that sounds like a good idea, but it might get a bit weird in certain edge cases, but maybe we can work around those. What happens if your edge is an ignored window, and you have a mux integration enabled, but no mux window next to the ignored window? Possibly we could just ignore it and basically do |
I guess I was thinking |
Sounds fair enough. #83 |
Thanks so much! |
Changes
config.wrap_at_edge = boolean
toconfig.at_edge = 'wrap'|'split'|'stop'
.Fixes #79